package cn.ck.config;

import cn.ck.common.RabbitMqConstant;
import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @title : 队列配置  spring boot 默认 Direct 交换器
 * */
@Configuration
public class RabbitConfig {

    @Bean
    public Queue QueueHello(){
        return new Queue(RabbitMqConstant.mq_key_hello);  //true 表示持久化该队列
    }




}
